
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<title>推荐有奖</title>
	<link rel="stylesheet" href="style.css">
	<script>
		//适配尺寸
		(function(doc, win) {
			var docEl = doc.documentElement,
				resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
				recalc = function() {
					var clientWidth = docEl.clientWidth;
					var clientHeight = docEl.clientHeight;
					if (!clientWidth) return;
					var fb = 20 * (clientWidth / 320) + 'px';
					docEl.style.fontSize = fb;
				};

			if (!doc.addEventListener) return;
			win.addEventListener(resizeEvt, recalc, false);
			doc.addEventListener('DOMContentLoaded', recalc, false);
		})(document, window);
	</script>
</head>

<body>
	<div class="wrapper" style="text-align:center">
		<img src="bd-07.jpg" alt="">
	</div>

	<script src="http://kuaihuoyun01.oss-cn-hangzhou.aliyuncs.com/ktms/js/heibao-active-resource.js"></script>
	<script>
		function imgbtn(url){
  			window.location.href=url;    //当前页面打开
		}
		//采用正则表达式获取地址栏参数
		function getQueryString(name) {
			var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r!=null) return  r[2]; return null;
		}

		var keyNum = getQueryString("key") || "1";
		var key = mapItem[keyNum];
		document.getElementById("keyName").innerHTML = key;
	</script>
</body>
</html>
